/* 定义变量 */
:root {
	/* 头部区域 */
	--title-height: 30px;
	/*底部区域  */
	--footer-height: 60px;
}
* {
	padding: 0;
	margin: 0;
}
ul,
li {
	list-style: none;
}

.g-container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f3f4f6;
}

.g-container .g-title {
	display: flex;
	justify-content: space-between;
	justify-items: center;
	padding: 10px 0;
	background-color: red;
}
.g-container h3 {
	width: 50px;
	height: var(--title-height);
	line-height: var(--title-height);
	text-align: center;
	color: white;
	font-size: 16px;
	font-weight: normal;
}
.g-container input {
	flex: 1;
	border: none;
	outline: none;
	border-radius: 8px;
	text-indent: 5px;
	height: 30px;
}

.g-container .g-wrapper {
	height: calc(100vh - var(--title-height) - var(--footer-height));
	/* height: 86vh; */
	overflow: scroll;
}

.g-container .g-tab-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	height: var(--footer-height);
	width: 100%;
	background-color: #ffffff;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	border-top: 1px solid #f9f7f7;
}
.g-container .g-tab-footer li {
	padding: 10px 20px;
	border-radius: 8px;
}

.g-container .g-tab-footer .active {
	color: red;
}

/* 首页 */
/* 菜单 */
.g-menu {
	display: flex;
	margin-top: 10px;
	flex-wrap: wrap;
	height: 160px;
	background-color: white;
}
.g-menu .item {
	width: 20%;
	text-align: center;
}
.g-menu .item span {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
	background-color: #ffce00;
}

.g-main {
	width: 100%;
	height: 200px;
	display: flex;
	flex-direction: column;
}
.g-main .g-goods {
	flex: 1;
	line-height: 30px;
}

.g-main .g-goods .g-goods-item {
	box-sizing: border-box;
	display: flex;
	border-radius: 8px;
	background-color: white;
	margin: 5px 10px;
	padding: 10px;
}
.g-main .g-goods .g-goods-item img {
	width: 100px;
	height: 100px;
	margin-right: 10px;
}
.g-main .g-goods .g-goods-item .g-goods-right {
	flex: 1;
	text-align: left;
}

.g-main .g-goods .g-goods-item .g-goods-right h2 {
	font-size: 18px;
}

.g-main .g-goods .g-goods-item .g-goods-right .ellipsis {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 1; /* 显示3行文本 */
}

/* 分类 */

.g-category-wrapper {
	display: flex;
	position: relative;
}
.g-category-wrapper .g-category {
	width: 100px;
	background-color: #f6f8fa;
	margin-top: 10px;
	line-height: 40px;
	padding-left: 10px;

	position: fixed;
	top: 40; /* 与视口顶部对齐 */
	background-color: #f9f9f9; /* 背景色 */
	overflow-y: auto; /* 内容超出时允许垂直滚动 */
}
/* 选中项样式 */
.g-category-wrapper .g-category .active {
	color: red;
}

.g-category-wrapper .g-content {
	flex: 1;
	background-color: #f5f5f5;
	margin-top: 10px;
	overflow-y: auto; /* 内容超出时允许垂直滚动 */
	margin-left: 100px;/* 主体内容左侧留出侧边栏的空间 */
}

.g-category-wrapper .g-content .g-content-item {
	display: flex;
	background-color: white;
	border-radius: 8px;
	margin: 10px;
	padding: 5px 10px;
}
.g-category-wrapper .g-content .g-content-item img {
	width: 80px;
	height: 80px;
	margin-right: 10px;
}
.g-category-wrapper .g-content .g-content-item .g-goods-right {
	flex: 1;
	text-align: left;
}

.g-category-wrapper .g-content .g-content-item .g-goods-right h2 {
	font-size: 18px;
}

.g-category-wrapper .g-content .g-content-item .g-goods-right .ellipsis {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: 1; /* 显示3行文本 */
}

/* 我的 */
.g-wrapper .g-person-center {
	background-color: brown;
	width: 100%;
	height: 130px;
}
.g-wrapper .g-person-center .g-person {
	padding: 10px;
}
.g-wrapper .g-person-center .g-person img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	vertical-align: middle;
}
.g-wrapper .g-person-center .g-person span {
	color: white;
	margin-left: 10px;
}
.g-wrapper .g-person-center .g-login {
	text-align: right;
	margin-right: 20px;
}
.g-wrapper .g-person-center .g-login button {
	width: 100px;
	height: 30px;
	background-color: #f9826a;
	border: none;
	outline: none;
	border-radius: 8px;
	color: white;
}
.g-wrapper .g-order {
	margin: 10px;
}
.g-wrapper .g-order h2 {
	font-weight: normal;
	font-size: 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid rgb(217, 215, 215);
}
.g-wrapper .g-order .g-order-box {
	display: flex;
	justify-content: space-around;
	padding-top: 10px;
}
.g-wrapper .g-order .g-order-box .g-order-item {
	text-align: center;
}
.g-wrapper .g-order .g-tuijian-wraper {
	display: flex;
	justify-content: space-between;
}
.g-wrapper .g-order .g-tuijian-wraper .g-tuijian-item {
	margin: 10px;
	width: 100%;
	height: 100%;
	background-color: pink;
}
.g-wrapper .g-order .g-tuijian-wraper img {
	width: 100%;
}
